<template>
  <div class="paneOne">
    <el-input
      placeholder="请输入内容"
      suffix-icon="el-icon-search"
      v-model="searchName"
      @change="searchHandler"
    >
    </el-input>
    <ul class="docList">
      <li>
        <h3>文章名称</h3>
        <p>是绝对符合设计繁花似锦的发黑</p>
        <button @click="getDocList">领取全文</button>
      </li>
    </ul>
    <el-pagination
      :small="true"
      :page-size="8"
      layout="prev, pager, next"
      @current-change="pageChange"
      :total="total"
    ></el-pagination>
    <el-dialog title="提示" :visible.sync="dialogOne">
      根据XX规定..........
      <el-input placeholder="请留下你的邮箱" v-model="email"> </el-input>
       <el-button type="primary" @click="submitHandler">提交</el-button>
    </el-dialog>
    <el-dialog title="提示" :visible.sync="dialogTwo">
      你可以在我的收藏中上传文献
       <el-button type="primary" @click="closeHandler">好的</el-button>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "paneOne",
  data() {
    return {
      total: 0,
      searchName: "",
      dialogOne: false,
      email: "",
      dialogTwo:false,
    };
  },
  mounted() {},
  methods: {
    searchHandler(val) {
      console.log(val);
      this.total = 100;
    },
    getDocList() {
      console.log("获取文献");
      this.dialogOne = true;
    },
    pageChange(val) {
      console.log(val);
    },
    submitHandler(){
      this.dialogOne = false
      this.dialogTwo = true
    },
    closeHandler(){
        this.dialogTwo = false
    }
  },
};
</script>

<style lang="scss" scoped>
</style>